home *** CD-ROM | disk | FTP | other *** search
-
- #include "../CGVPMacro.csi"
-
- VertAttributes
- {
- POSITION_3
- TEXCOORD0_2
- TANG_3X3
- }
-
- MainInput
- {
- VIEWPROJ_MATRIX,
- CAMERA_POS
- }
-
- DeclarationsScript
- {
- IN_T0_TANG
- OUT_T0_T1_T2
- }
-
- PositionScript = PosCommon
-
- CoreScript
- {
- OUT.Tex0.xy = IN.TexCoord0.xy;
- OUT.Tex1.xy = IN.TexCoord0.xy;
-
- TANG_MATR
-
- float3 lightVec = CameraPos.xyz - vPos.xyz;
- OUT.Tex2.xyz = mul(objToTangentSpace, lightVec.xyz);
- }
-